package com.redrose.audioandvideo.bean;

import android.os.Parcel;
import android.os.Parcelable;

import org.litepal.crud.DataSupport;

import java.io.Serializable;

/**
 * Desc:
 * Author: RedRose
 * Date: 2019/3/30
 * Email: yinsxi@163.com
 */

public class Photo extends DataSupport implements Parcelable {
    private String time;
    private int year;
    private int month;
    private int day;
    private String name;
    private int weekDay;
    private String path;
    private long classId;
    public Photo(){}
    protected Photo(Parcel in) {
        time = in.readString();
        year = in.readInt();
        month = in.readInt();
        day = in.readInt();
        name = in.readString();
        weekDay = in.readInt();
        path = in.readString();
        classId = in.readLong();
    }

    public static final Creator<Photo> CREATOR = new Creator<Photo>() {
        @Override
        public Photo createFromParcel(Parcel in) {
            return new Photo(in);
        }

        @Override
        public Photo[] newArray(int size) {
            return new Photo[size];
        }
    };

    public int getWeekDay() {
        return weekDay;
    }

    public void setWeekDay(int weekDay) {
        this.weekDay = weekDay;
    }

    public long getClassId() {
        return classId;
    }

    public void setClassId(long classId) {
        this.classId = classId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setWeek(int week) {
        this.weekDay = week;
    }

    public int getWeek() {
        return weekDay;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(time);
        dest.writeInt(year);
        dest.writeInt(month);
        dest.writeInt(day);
        dest.writeString(name);
        dest.writeInt(weekDay);
        dest.writeString(path);
        dest.writeLong(classId);
    }
}
